package com.lnsf.bookstore.web.book.service;

import com.github.pagehelper.PageInfo;
import com.lnsf.bookstore.common.controller.ApiBaseAction;
import com.lnsf.bookstore.web.book.vo.ApiBook;
import org.apache.solr.client.solrj.SolrServerException;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface ApiBookService {

    List<ApiBook> selectAll(Map<String, Object> map, ApiBook apiBook);

    ApiBook queryObject(Integer id);

    int update(ApiBook apiBook);

    int save(ApiBook apiBook);

    List<ApiBook> queryList(Map<String, Object> map);

    ApiBook checkBook(Map<String, Object> map);

    /**
     * //将图书商品列表导入Solr
     * @return
     * @throws IOException
     * @throws SolrServerException
     */
    Object importItemToIndex() throws IOException, SolrServerException;





}
